import { Component } from '@angular/core';
import {IonicPage, NavController, NavParams, ViewController} from 'ionic-angular';
import {env} from "@env/environment";

/**
 * Generated class for the WorkerButtonsPopoverPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-worker-buttons-popover',
  templateUrl: 'worker-buttons-popover.html',
})
export class WorkerButtonsPopoverPage {

  dev:boolean;

  constructor(public navCtrl: NavController,
              public navParams: NavParams,
              private viewCtrl:ViewController,) {
    this.dev = env.mode=='prod';
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad WorkerButtonsPopoverPage');
  }

  close(data:any){
    this.viewCtrl.dismiss(data);
  }

}
